blob: a352fe4573cc5b67b9d00d113e36c78c8222d5ef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import { get } from '$lib/utils';
import { error } from '@sveltejs/kit';
export let load = async ({ params: { username } }) => {
try {
return { subject: await get(`/users/${username}`) };
} catch (e) {
throw error(500, 'Unable to retrieve user account data');
}
};
|